﻿<UserControl x:Class="PhotoBrowserAg.imageZoom"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:control="clr-namespace:PhotoBrowserAg" Background="#FFEE2222">
    <UserControl.Resources>
        <control:ImageUriConverter x:Key="converter" />
    </UserControl.Resources>
    <Grid x:Name="LayoutRoot"
          Margin="20">
        <Rectangle x:Name="dropshadow"
            StrokeThickness="3"
                   Stroke="#CC4F4A4A"
                   RadiusX="8"
                   RadiusY="8" Margin="0,0,-3,-3" />
        <Rectangle x:Name="border"
            StrokeThickness="1"
                   Stroke="White"
                   RadiusX="8"
                   RadiusY="8"
                   Fill="#CC000000" />
        <Grid x:Name="BoxContents"
              Margin="10">
            <Grid.RowDefinitions>
                <RowDefinition MinHeight="40" />
                <RowDefinition Height="22" />
            </Grid.RowDefinitions>
            <ScrollViewer HorizontalScrollBarVisibility="Auto"
                          VerticalScrollBarVisibility="Auto"
                          Grid.Column="1" Margin="5,5,5,10">
                <Image x:Name="img"
                       Margin="0"
                       Source="{Binding CurrentPhotoURL, Converter={StaticResource converter}}"
                       HorizontalAlignment="Center"
                       VerticalAlignment="Center"
                       Stretch="None" />
            </ScrollViewer>
            <StackPanel Margin="0"
                        Grid.Row="1"
                        Orientation="Horizontal">
                <Button x:Name="btnPrev"
                        HorizontalAlignment="Left"
                        Margin="0,0,10,0"
                        IsEnabled="{Binding AnyBefore}"
                        FontFamily="{StaticResource defaultFontFamily}"
                        FontSize="{StaticResource defaultFontSize}"
                        Content="Previous" />
                <Button x:Name="btnNext"
                        HorizontalAlignment="Left"
                        Margin="0,0,10,0"
                        IsEnabled="{Binding AnyMore}"
                        FontFamily="{StaticResource defaultFontFamily}"
                        FontSize="{StaticResource defaultFontSize}"
                        Content="Next" />
                <Button x:Name="btnPicnik"
                        HorizontalAlignment="Left"
                        FontFamily="{StaticResource defaultFontFamily}"
                        FontSize="{StaticResource defaultFontSize}"
                        Margin="0,0,10,0"
                        Content="PicNik" />
                <Button x:Name="btnClose"
                        Margin="0,0,10,0"
                        FontFamily="{StaticResource defaultFontFamily}"
                        FontSize="{StaticResource defaultFontSize}"
                        Content="Close" />
            </StackPanel>
        </Grid>
    </Grid>
</UserControl>
